package com.ymtms.arrivalofgoods.dao;

import com.ymtms.arrivalofgoods.pojo.CheckGoodsCustomer;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface CheckGoodsCustomerMapper {
    int deleteByPrimaryKey(Integer cgcid);

    int insert(CheckGoodsCustomer record);

    int insertSelective(CheckGoodsCustomer record);

    CheckGoodsCustomer selectByPrimaryKey(Integer cgcid);

    int updateByPrimaryKeySelective(CheckGoodsCustomer record);

    int updateByPrimaryKey(CheckGoodsCustomer record);
@Select("select*from check_goods_customer where gid=#{gid}")
    CheckGoodsCustomer queryByReceiptId(Integer gid);
@Update("update check_goods_customer set status='已验收' where gid=#{num}")
   void updateCheckCustomerByNum(Integer num);
    @Update("update check_goods_customer set status='未验收' where gid=#{num}")
    void updateUnCheckCustomerByNum(Integer num);


}